import pandas as pd
data = {
    'Name': ['Alice', 'Bob', 'Charlie'],
    'Age': [25, 30, 35],
    'Score': [88.5, 92.0, 78.5]
}
df = pd.DataFrame(data)
# 使用assign方法（不修改原DataFrame）
df_new = df.assign(Gender=['Female', 'Male', 'Male'])
print(df_new)
